package com.zzyl.entity;

import com.zzyl.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "护理计划任务实体类")
public class ProjectTasks extends BaseEntity {
    @ApiModelProperty(value = "护理员id")
    private Long nursingId;
    @ApiModelProperty(value = "项目id")
    private Long projectId;
    @ApiModelProperty(value = "老人id")
    private Long elderId;
    @ApiModelProperty(value = "床位编号")
    private Long bednumber;
    @ApiModelProperty(value = "任务类型")
    private Integer taskType;

    @ApiModelProperty(value = "服务时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime estimatedServerTime;
    @ApiModelProperty(value = "实际服务时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime realServerTime;
    @ApiModelProperty(value = "执行记录")
    private String  mark;
    @ApiModelProperty(value = "取消原因")
    private Integer cancelReason;
    @ApiModelProperty(value = "状态")
    private Integer status;
    @ApiModelProperty(value = "关联单据编号")
    private Long rel_no;
    @ApiModelProperty(value = "执行图片")
    private String taskImage;

}
